import request from "@/utils/request";


export function listLoan(query) {
  return request({
    url: '/fm/la/list',
    method: 'get',
    params: query
  })
}
export function getLoan(id) {
  return request({
    url: '/fm/la/get/'+id,
    method: 'get',
  })
}
export function updateLoan(data) {
  return request({
    url: '/fm/la/edit',
    method: 'post',
    data: data
  })
}
export function addLoan(data) {
  return request({
    url: '/fm/la/add',
    method: 'post',
    data: data
  })
}
export function delLoan(id) {
  return request({
    url: '/fm/la/del/'+id,
    method: 'delete',
  })
}
